import axios from "../../utils/axios"
export const getRootList = ()=>{
    return axios.get("/admin/admin/list")
}
export const getRoot = (adminname)=>{
    return axios.get("/admin/admin/detail",{params:{adminname}})
}
export const addRoot = (data={})=>{
    return axios.post("/admin/admin/add",data)
}
export const updateRoot = (data={})=>{
    return axios.post("/admin/admin/update",data)
}
export const delRoot = (data={})=>{
    return axios.post("/admin/admin/delete",data)
}